package com.le.tester.imooc.oldfairy.coding.datastructure;

import java.util.LinkedList;

/**
 * createTime：2023/5/29 14:24
 * description：使用链表
 */
public class LQueue<T> {

    LinkedList<T> list = new LinkedList<>();

    public void enQueue(T t) {
        list.add(t);
    }

    public T deQueue() {
        return list.remove();
    }

    public int size() {
        return list.size();
    }

    @Override
    public String toString() {
        return "LQueue{" +
                "list=" + list +
                '}';
    }


}
